﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication3
{
    public partial class MDIMenu : Form
    {
        public MDIMenu()
        {
            InitializeComponent();
            Password Password = new Password();
            Password.Close();
        }

        private void ShowNewForm(object sender, EventArgs e)
        {
            Libro NuevoLibro = new Libro();
            NuevoLibro.MdiParent = this;
            NuevoLibro.Show();            
        }


        private void ConsultaLibrosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Consulta_Libros Consulta_Libros = new Consulta_Libros();
            Consulta_Libros.MdiParent = this;
            Consulta_Libros.Show();
        }

        private void StatusBarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            statusStrip.Visible = BarraEstado.Checked;
        }

        private void CascadeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.Cascade);
        }

        private void TileVerticalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.TileVertical);
        }

        private void TileHorizontalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.TileHorizontal);
        }

        private void ArrangeIconsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.ArrangeIcons);
        }

        private void CloseAllToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form childForm in MdiChildren)
            {
                childForm.Close();
            }
        }

        private void nuevaEditorialToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Editoriales Editoriales = new Editoriales();
            Editoriales.MdiParent = this;
            Editoriales.Show();
        }


        private void consultasEditorialesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Consulta_Editoriales ConsultaEditoriales = new Consulta_Editoriales();
            ConsultaEditoriales.MdiParent = this;
            ConsultaEditoriales.Show();
        }

        private void nuevoAutorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Autor Autor = new Autor();
            Autor.MdiParent = this;
            Autor.Show();
        }

        private void consultasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Consulta_Autores ConsultaAutores = new Consulta_Autores();
            ConsultaAutores.MdiParent = this;
            ConsultaAutores.Show();
        }

        private void nuevaCategoriaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Categorias Categorias = new Categorias();
            Categorias.MdiParent = this;
            Categorias.Show();
        }

        private void contentsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Prestamo Prestamo = new Prestamo();
            Prestamo.MdiParent = this;
            Prestamo.Show();
        }

        private void salirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void librosPorAutorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LibxAut libXAut = new LibxAut();
            libXAut.MdiParent = this;
            libXAut.Show();
        }       
        
    }
}
